package com.test.jdk.streamApi;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public class StreamTestForEach {
    public static void main(String[] args) {
        //定义一个list集合
        List<String> strings = Arrays.asList("张三", "张三丰", "成龙", "周星驰");
        strings.stream().forEach(System.out::println);

    }
}
